package dataStructure;

/**
 * @author WuYongheng
 * @date 2022/3/25
 * @description
 */
public class TestSingLinkedList {
    public static void main(String[] args) {
        // list指向头节点head
        List list = new SingleLinkedList();
        list.add(123);
        list.add(321);
        list.add(456);
        list.add(111);
        list.add(222);
        list.add(3, 678);

        System.out.println(list.size());
        System.out.println(list.get(5));
        System.out.println(list.toString());
    }
}
